package com.siyu.decorator;

/**
 * @Author: siyu
 * @CreateTime: 2024-10-06
 * @Version: 1.0
 */
public class PancakeDecorator extends Pancake{

    private final Pancake pancake;

    public PancakeDecorator(Pancake pancake){
        this.pancake = pancake;
    }


    @Override
    protected String getMsg() {
        return this.pancake.getMsg();
    }

    @Override
    protected int getPrice() {
        return this.pancake.getPrice();
    }
}
